﻿@{
    var myCalendars = PageData[0];
}
<div id="myCalendars" class="nav-section rounded-top">
    <h3 class="rounded-top border-bottom">
        내 달력 - <a href="@Href("~/Calendar/Add")">추가</a>
    </h3>
    <ul>
        @* 사용자가 소유한 모든 항목을 먼저 표시 *@
        @foreach (var calendar in myCalendars) {
            <li class="calendar-name rounded-top rounded-bottom" style="background-color: @(calendar.Color); border-color: @ColorHelper.GetBorderFromHtml(calendar.Color)">
                <a href="@Href("~/Calendar/Info", calendar.CalendarId)" title="달력 정보">@calendar.Name </a>
            </li>
        }
    </ul>
</div>